package com.yjj.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yjj.bean.Yjj_user;
import com.yjj.dao.Yjj_userDao;
import com.yjj.service.Iyjj_userService;
import com.yjj.util.Pageutil;

@Service("iyjj_userService")
public class Yjj_userServiceImpl implements Iyjj_userService {

	@Autowired
	Yjj_userDao yjj_userDao;
	
	@Override
	public int deleteByPrimaryKey(Integer uid) {
		// TODO Auto-generated method stub
		return yjj_userDao.deleteByPrimaryKey(uid);
	}

	@Override
	public int insert(Yjj_user record) {
		// TODO Auto-generated method stub
		return yjj_userDao.insert(record);
	}

	@Override
	public int insertSelective(Yjj_user record) {
		// TODO Auto-generated method stub
		return yjj_userDao.insertSelective(record);
	}

	@Override
	public Yjj_user selectByPrimaryKey(Integer uid) {
		// TODO Auto-generated method stub
		return yjj_userDao.selectByPrimaryKey(uid);
	}

	@Override
	public int updateByPrimaryKeySelective(Yjj_user record) {
		// TODO Auto-generated method stub
		return yjj_userDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Yjj_user record) {
		// TODO Auto-generated method stub
		return yjj_userDao.updateByPrimaryKey(record);
	}

	@Override
	public Object getOneByTel(String tel) {
		// TODO Auto-generated method stub
		return yjj_userDao.getOneByTel(tel);
	}

	@Override
	public Object getOneByPwdAndTel(String pwd, String tel) {
		// TODO Auto-generated method stub
		return yjj_userDao.getOneByPwdAndTel(pwd,tel);
	}

	@Override
	public List getUserAll(Pageutil p) {
		// TODO Auto-generated method stub
		return yjj_userDao.getUserAll(p);
	}

	@Override
	public int getcount() {
		// TODO Auto-generated method stub
		return yjj_userDao.getcount();
	}

}
